home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / dos_win / winsock / maillist / 94-03.Z / 94-03 / text0271.txt < prev    next >
Encoding:
Text File  |  1994-03-30  |  12.0 KB  |  278 lines

  1. In article <ssulliva.15.00082919@opal.tufts.edu>
  2.            ssulliva@opal.tufts.edu "Sean Sullivan" writes:
  3.  
  4. >If you use version 1 B Beta#2 this problem will be eliminated.  However, this 
  5. >is a prerelease version and seems to have some glitches.
  6.  
  7. Well, using version 1 B Beta#2 I just got a general protection fault :(  
  8. is there any other talk software out there ?
  9.  
  10. adrian
  11. -- 
  12. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  13. :: Adrian Parker :: adrian@willen.demon.co.uk :: West Midlands, England ::
  14. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  15. From news@bigblue.oit.unc.edu Mon Mar 21 19:20:39 1994
  16. Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  17.           id AA27902; Mon, 21 Mar 1994 17:01:23 -0500
  18. Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
  19.           id AA28389; Mon, 21 Mar 1994 16:39:53 -0500
  20. Received: from GATEWAY by bigblue with netnews
  21.     for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
  22. To: winsock@sunsite.unc.edu
  23. Date: Mon, 21 Mar 1994 19:20:39 GMT
  24. From: rbarrett@oucsace.cs.ohiou.edu (Rich Barrette)
  25. Message-Id: <Cn14EG.DKr@oucsace.cs.ohiou.edu>
  26. Organization: Ohio University CS Dept,. Athens
  27. Sender: ses
  28. Subject: Chameleon Demo & ftp.netmanage.com
  29.  
  30.  
  31.  
  32. Hello!
  33.  
  34. Has anyone managed to pull this thing down?  I haven't
  35. seen thoroughput that slow since my 1200 baud C64 days
  36. in grade school.  Ugh!
  37.  
  38. If anyone has it at an alternate site or could somehow 
  39. manage to email it to me I would appreciate it.  As I 
  40. understand it the demo serial number date expires shortly.
  41.  
  42. Thanks!
  43.  
  44. -Rich
  45. --
  46. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  47. Richard M. Barrette -=-=-=-=-=- rbarrett@oucsace.cs.ohiou.edu
  48. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  49. Apparently, Americans are pretty nasty. More than 68% of the 
  50.  population is within one standard deviation of being mean.
  51. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  52. From news@bigblue.oit.unc.edu Mon Mar 21 20:44:03 1994
  53. Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  54.           id AA06125; Mon, 21 Mar 1994 18:02:28 -0500
  55. Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
  56.           id AA08113; Mon, 21 Mar 1994 17:17:55 -0500
  57. Received: from GATEWAY by bigblue with netnews
  58.     for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
  59. To: winsock@sunsite.unc.edu
  60. Date: Mon, 21 Mar 1994 20:44:03 GMT
  61. From: pete@tecc.co.uk (Pete Bentley)
  62. Message-Id: <PETE.94Mar21204403@luggage.tecc.co.uk>
  63. Organization: T.E.C.C. Ltd, London, England.
  64. Sender: ses
  65. Subject: WSAAsynchSelect(), FD_WRITE etc
  66.  
  67. [Er, if there is a newsgroup / mailing list where winsock programmers
  68. hang out, I'd be grateful if someone would point me at it.  It's hard
  69. to keep up with alt.winsock as 99% of it is noise (from a programmer's
  70. point of view :-)]
  71.  
  72. According to my version of the Winsock 1.1 spec, when WSAAsyncSelect()
  73. is called with FD_WRITE set in the event mask, no message is returned
  74. to the application until some send() call actually blocks. Fair enough.
  75. Some DLLs seem to try and be 'helpful' including the free Microsoft
  76. stack and Trumpet (up to alpha #18, at least) and will deliver an
  77. FD_WRITE indication if a WSAAsyncSelect() is issued on a socket which
  78. includes FD_WRITE *if* the previous mask didn't include FD_WRITE *and*
  79. the socket is currently writable.  In my opinion, this behavious is
  80. more useful, as it will naturally kick-start applications which are
  81. totally message driven.
  82.  
  83. As it happens I have written a set of class libraries which are
  84. totally event driven and do their 'real' work by making callbacks to
  85. the application code (it overrides member functions).  One application
  86. which makes use of these classes is basically structured as a state
  87. machine, with certain state transitions being made when all the data
  88. that the application queued on a socket has made it through send()
  89. (this app is making use of buffering within the socket class so it
  90. issue lots of small send()'s without causing network load (or having
  91. to rely on Nagel algorithms within the Winsock DLL to do that)).
  92.  
  93. Now, my previous strategy was to add FD_WRITE to an internal event
  94. mask and issue a new WSAAsyncSelect() whenever data was added to an
  95. empty buffered socket, then when the app returns to Windows, many (most?)
  96. Winsock DLLs will send a message indicating FD_WRITE and the data gets
  97. sent to send().
  98.  
  99. And then someone tries to use the application with FTP's PC/TCP stack
  100. & DLL and it falls flat because this DLL really won't deliver an
  101. FD_WRITE indication until a send() returns EWOULDBLOCK.  Reading the
  102. spec closely, I can't fault them for that, but its a real pain.
  103. Suddenly code which was happily event driven needs to be kick started
  104. by a flush() function if there is a chance the socket isn't blocked.
  105. And to make the class libraries work I either have to call the
  106. callbacks directly or post fake FD_WRITE messages.  Neither of these
  107. approaches are desirable, one risks recursion (the callback is
  108. extremely likely to queue more data which may need to be flush()ed)
  109. and the other tends to overlflow the task's message queue when run
  110. with a 'nice' DLL which is also queuing FD_WRITE indications.
  111.  
  112. Anyway, looking at it (hopefully) objectively, the approach where the
  113. DLL sends extra FD_WRITE messages is cleaner from an event-driven
  114. point of view, and is no extra stress on applications written for the
  115. behavious in the 1.1 spec, as they have to cope with spurious FD_WRITE
  116. messages anyway.  So my questions are:-
  117.  
  118. 1) Any chance of this being changed in a future winsock spec. ie
  119. mandate that if an application does a WSAAsyncSelect() including
  120. FD_WRITE and the socket is writable that one FD_WRITE indication gets
  121. sent immediately.
  122.  
  123. 2) How do other people using the async. interface cope with this if
  124. they want to keep the socket code as seperate as possible from the
  125. application code.
  126.  
  127. 3) What does a return value of 0 from send() mean?  Neither the
  128. winsock spec. nor any of the Unix manuals I have to hand say this
  129. means anything special (like EOF when recv() returns 0).  I only ask
  130. because the Microsoft DLL seems to often send an FD_WRITE message to
  131. the application, but when the application tries a send() it returns 0.
  132. As my socket classes use a pretty standard loop write (loop until all
  133. data written or send() returns SOCKET_ERROR), this just means they
  134. sometimes loop rapidly through about 60 send() calls, all returning 0
  135. until the DLL finally accepts some data.  Curious, eh?  I certainly
  136. can't afford to treat this the same as -1/EWOULDBLOCK because I very
  137. much doubt I would get another FD_WRITE...Just another Microsoft bug,
  138. I guess.
  139.  
  140. Pete.
  141. From news@bigblue.oit.unc.edu Mon Mar 21 21:44:38 1994
  142. Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  143.           id AA11184; Mon, 21 Mar 1994 18:31:20 -0500
  144. Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
  145.           id AA29104; Mon, 21 Mar 1994 18:23:05 -0500
  146. Received: from GATEWAY by bigblue with netnews
  147.     for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
  148. To: winsock@sunsite.unc.edu
  149. Date: 21 Mar 1994 21:44:38 GMT
  150. From: Michel.Davidoff@sonoma.edu (Michel.Davidoff)
  151. Message-Id: <Michel.Davidoff.566.0@sonoma.edu>
  152. Organization: Sonoma state university
  153. Sender: ses
  154. Subject: Why not PowerPC
  155.  
  156. I was given the task of arguing why the PowerPC (Mac) can not
  157. be used as a PC (486 or better)
  158. I am not looking for what is better but 
  159. for good arguments of tasks that can not be done on a PowerPC.
  160. Like the fact the Soft Windows will only run in S mode and not E mode.
  161.  
  162.  
  163.  
  164. Peace
  165. Michel Davidoff
  166. E-Mail Michel.Davidoff@Sonoma.edu
  167. From news@bigblue.oit.unc.edu Mon Mar 21 21:03:41 1994
  168. Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  169.           id AA21168; Mon, 21 Mar 1994 19:31:19 -0500
  170. Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
  171.           id AA23204; Mon, 21 Mar 1994 19:29:57 -0500
  172. Received: from GATEWAY by bigblue with netnews
  173.     for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
  174. To: winsock@sunsite.unc.edu
  175. Date: Mon, 21 Mar 1994 21:03:41 GMT
  176. From: cmj@acsu.buffalo.edu (Chris Johnson)
  177. Message-Id: <Cn1965.J2H@acsu.buffalo.edu>
  178. Organization: UB
  179. Sender: ses
  180. Subject: Free/Share Ware PPP?
  181.  
  182. Hi Everyone!!!  I've been following this group for some time and I
  183. know that trumpet winsocks going to have PPP soon, but I need it now.
  184. I just found out that my school is going to be offering PPP on a test
  185. basis to those that ask for it.  I asked for it, but I may or may not
  186. be able to use it because I don't have any software to handlpe PPP.
  187. If you know of any shareware or freeware please let me know... I can't
  188. afford to invest in commercial since I'm just a poor college student,
  189. so I would at least like to try before I buy.
  190.  
  191. Thanks,
  192. Chris
  193.  
  194.  
  195. -- 
  196. PGP key fingerprint:   |      PGP key is at pgp-public-keys@demon.co.uk
  197. 1024/E3F087 1993/04/20 |   alias cmj@acsu.buffalo.edu 'Christopher Johnson'
  198. 00 CB 62 92 93 7D 43 6F|   All rights Reserved. Permision to quote granted.
  199. D9 EF 28 21 EA CE 78 F1| Express permision to duplicate or archive not granted.
  200. From news@bigblue.oit.unc.edu Mon Mar 21 23:11:30 1994
  201. Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  202.           id AA00712; Mon, 21 Mar 1994 20:31:20 -0500
  203. Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
  204.           id AA21345; Mon, 21 Mar 1994 20:15:34 -0500
  205. Received: from GATEWAY by bigblue with netnews
  206.     for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
  207. To: winsock@sunsite.unc.edu
  208. Date: 21 Mar 1994 23:11:30 GMT
  209. From: cook@cs.umass.edu (Robert Cook)
  210. Message-Id: <2ml9j2$ahu@thor.cs.umass.edu>
  211. Organization: University of Massachusetts, Amherst
  212. Sender: ses
  213. Subject: How Does one detect server closing socket
  214.  
  215. I have a server that times out a connection if its been idle
  216. for more then a certain time.  So I'm trying to build a client
  217. that will handle this.  I thought if I tried to send data to a 
  218. disconnected socket that send() would return SOCKET_ERROR, but
  219. that's not happening. Noting that the Winsock specs for send() 
  220. states, "Note that the successful  completion of a send() does
  221. not indicate that the data was successfully delivered.",  I 
  222. tried setting TCP_NODELAY on the socket and that
  223. didn't work.  I tried using select and that didn't work.  The only
  224. time I know that the socket is disconnected is when I use the recv()
  225. command.  I could probably write a function that would ping the
  226. connection
  227. and the recv() would return SOCKET_ERROR, but that means I would first
  228. ping the connection everytime I wanted to send data.  That seems pretty
  229. inefficent.
  230.  
  231. So how do other people do it?  How can the client detect that
  232. the server has closed the connection?
  233.  
  234. Thanks in advance,
  235.                              
  236. Bob Cook                            _**_                 
  237. Computer Science Dept.             /____|-IIIIIIIIIIII   
  238. University of Massachusetts      >|  4  |-----------\    
  239. Amherst MA                        +-(O)--------(O)--+    
  240. From backman@mailserv-B.ftp.com Mon Mar 21 15:53:00 1994
  241. Received: from ftp.com (wd40.ftp.com) by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  242.           id AA03350; Mon, 21 Mar 1994 20:50:55 -0500
  243. Received: from mailserv-B.ftp.com by ftp.com  ; Mon, 21 Mar 1994 20:50:54 -0500
  244. Received: from backman.homerun by mailserv-B.ftp.com (5.0/SMI-SVR4)
  245.     id AA24969; Mon, 21 Mar 94 20:53:00 EST
  246. Date: Mon, 21 Mar 94 20:53:00 EST
  247. Message-Id: <9403220153.AA24969@mailserv-B.ftp.com>
  248. To: xxnoble@lims01.lerc.nasa.gov
  249. Subject: Re: ftp software
  250. From: backman@ftp.com  (Larry Backman)
  251. Cc: Multiple recipients of list <winsock@sunsite.unc.edu>
  252. Sender: backman@mailserv-B.ftp.com
  253. Repository: mailserv-B.ftp.com, [message accepted at Mon Mar 21 20:52:45 1994]
  254. Originating-Client: homerun
  255. Content-Length: 520
  256.  
  257.  
  258.  >> >FTP Software, Inc. is a commercial software vendor. The product being referred 
  259.  >> >to is PC/TCP, a TCP/IP protocol stack for MS DOS and OS/2. It is definitely 
  260.  >> >_NOT_ freeware or shareware. If you are still interested, their address is:
  261.  >> 
  262.  >> 
  263.  >>     FTP Software, Inc.
  264.  >>     26 Princess St.
  265.  >>     Wakefield, MA 01880
  266.  >> 
  267.  >>     (508) 685-4000 (voice)
  268.  >>     (508) 794-4484 (FAX)
  269.  >> 
  270. These are old addresses:
  271. we are at 2 High St., North Andover, Ma. 01845
  272. 508-485-4000
  273.  
  274.  
  275. email via info@ftp.com
  276.  
  277.  
  278.